package com.ruoyi.business.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


/**
 * 订单打款凭证业务对象 order_payment_voucher
 *
 * @author ruoyi
 * @date 2024-04-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OrderPaymentVoucherBo extends BaseEntity {

    /**
     * 打款凭证
     */
    @NotNull(message = "打款凭证不能为空", groups = { EditGroup.class })
    private Long paymentVoucherId;

    /**
     * 运单id
     */
    @NotNull(message = "运单id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderId;

    /**
     * 凭证url
     */
    @NotBlank(message = "凭证url不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @NotNull(message = "删除标志（0代表存在 1代表删除）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isDeleted;


}
